package com.stars.services.impl.pshow;

import com.stars.dao.mapper.pshow.PShowOrdersInfoMapper;
import com.stars.services.pshow.PShowOrdersInfoConfigServices;
import com.stars.entity.pshow.PShowOrdersInfoEntity;
import com.stars.dao.mapper.pshow.PShowOrdersInfoMapper;

import org.springframework.stereotype.Service;

import com.stars.services.impl.BaseConfigServiceImpl;
import com.stars.common.base.ResultMsg;
import java.util.List;
import com.stars.common.base.BaseConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.apache.commons.lang3.StringUtils;
import java.util.Date;

/**
 * @Title: 订单明细表 业务逻辑
 * @author 肖伟
 * @date 2020-01-04
 * @version V1.0
 *
 */
@Service
public class PShowOrdersInfoConfigServicesImpl extends BaseConfigServiceImpl<PShowOrdersInfoMapper , PShowOrdersInfoEntity> implements PShowOrdersInfoConfigServices {
    @Autowired
    private PShowOrdersInfoMapper pShowOrdersInfoMapper;


    @Override
    public ResultMsg delByMainId(String[] ids) throws Exception {
        if (null == ids) {
            return ResultMsg.failure("参数异常");
        }
        for (String id : ids) {
            pShowOrdersInfoMapper.delByMainId(id);
        }
        return ResultMsg.success();
    }


}